home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 31
/
Aminet 31 (1999)(Schatztruhe)[!][Jun 1999].iso
/
Aminet
/
comm
/
misc
/
TagoMigaSrc.lha
/
PORTING
< prev
next >
Wrap
Text File
|
1999-03-28
|
2KB
|
38 lines
Porting Tag-o-Miga to other computer systems
============================================
Tag-o-Miga was designed to be easily ported, by seperating
platform-specific and platform-independent code, so this should not
cause much of a problem.
There is a directory for each platform type (amiga, dos, etc.) which
contains only files specific to that platform, and also contains all
of the object and executable files for that platform. The 'shared'
directory contains files which are global for every platform.
To start with, create a directory for your platform. I suggest that
you copy the files from the unix directory into it as a starting
point.
Edit the os.h file and specific.c file to suit your system.
Now you need to compile it. A basic build will consist of the
following files from the shared directory:
tmiga.c tagfile.c general.c config.c errors.c build.c
plus 'specific.c' from the platform-specific directory.
When compiling, specify the macro PRERELEASE if you want a prerelease
version (this changes some of the version displays to include the
build number). Under most compilers, -D on the command line specifies
a macro (e.g. -DPRERELEASE).
If you get warnings about not being able to find function stricmp
during linking, specify the macro STRCASECMP.
By default, the program will not use a GUI. If you want to enable a
GUI, specify the macro ACTIVATE_GUI and write some code containing
a function DoGUI(). This function is called at the appropriate
point in the program. Write your code to read and modify the global
variables containing the tagline information. See amiga/a_gui2.c
and amiga/a_gui.c for help on this.